Conditions | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { createLogger, transports, format } from 'winston'; |
||
46 | export function createUnitLogger(level = 'verbose') { |
||
47 | const traces = []; |
||
48 | const logger = createLogger({ |
||
49 | level, |
||
50 | levels, |
||
51 | format : format.combine(...JSONFormats), |
||
52 | transports : [ |
||
53 | new arrayTransport({ |
||
54 | array : traces, |
||
55 | json : true |
||
56 | }) |
||
57 | ] |
||
58 | }); |
||
59 | |||
60 | return { logger, traces }; |
||
61 | } |
||
62 |